import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.io.IOException;

/**
 * @author 王瑞
 * @description: TODO
 * @date 2020/4/16  10:46
 */
public class ProviderMainA {

    public static void main(String[] args) throws IOException {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ProviterRegistryCongig.class);
        context.start();
        System.in.read();

    }

    @EnableDubbo(scanBasePackages = "com.wr.api.impl")
    @Configuration
    @PropertySource("classpath:dubbo-provider.properties")
    public static class ProviterRegistryCongig{}
}
